home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d21 / dvglue.arc / TVFQHEAD.C < prev    next >
C/C++ Source or Header  |  1990-01-09  |  1KB  |  29 lines

  1. /*=======================================================*/
  2. /*  TVFQHEAD.C                                           */
  3. /*                                                       */
  4. /*  (c) Copyright 1988 Ralf Brown  All Rights Reserved   */
  5. /*  May be freely copied for noncommercial use, so long  */
  6. /*  as this copyright notice remains intact, and any     */
  7. /*  changes are marked in the comment blocks preceding   */
  8. /*  functions.                                           */
  9. /*=======================================================*/
  10.  
  11. #include <mem.h>
  12. #include "tvapi.h"
  13. #include "tvstream.h"
  14.  
  15. /*=============================================*/
  16. /* TVqry_header   get field table header       */
  17. /*   Ralf Brown 4/17/88                        */
  18. /*=============================================*/
  19.  
  20. void pascal TVqry_header(OBJECT win,FT_HEADER *header)
  21. {
  22.    static BYTE stream[] = { S_QUERY(7), 0xFC, 0,0,0,0,0,0 } ;
  23.  
  24.    TVwin_stream(win,stream) ;
  25.    memcpy((char *)header, (char *)(stream+5), sizeof(FT_HEADER)) ;
  26. }
  27.  
  28. /* End of TVFQHEAD.C */
  29.